
{if isset($messages) AND !empty($messages)}
{foreach from=$messages item=message}
<div class="message {$message.type}">
  <p>{$message.text}</p>
</div>
{/foreach}
{/if}